var status = -1;

function action(a, c, b) { 1 == a ? status++ : (0 == status && cm.dispose(), status--);
    if (0 == status)
        if (0 >= cm.getMap().getAllMonstersThreadsafe().size()) cm.sendOk("當前地圖沒有可以查看的怪物"), cm.dispose();
        else { a = "請選擇您要查看的怪物掉寶\r\n\r\n#b";
            for (c = cm.getMap().getAllUniqueMonsters().iterator(); c.hasNext();) b = c.next(), a += "#L" + b + "##o" + b + "##l\r\n";
            cm.sendSimple(a) }
    else 1 == status && (cm.sendNext(cm.checkDrop(b)), cm.dispose()) };
